import { getCategoryAPI } from "@/apis/layout-api";
import { defineStore } from 'pinia'
import { ref } from "vue";


export const useCategoryStore = defineStore('category',()=> {
    let categoryList = ref([])

    const getCategoryList= async ()=> {
        const res = await getCategoryAPI()
        categoryList.value = res.result
    }
    return{
        categoryList,
        getCategoryList
    }
})